package com.lfd.service.impl;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lfd.mapper.UserMapper;
import com.lfd.service.UserServise;
import com.lfd.entity.User;


@Service
public class UserServiceImpl implements UserServise {
	
	
	@Autowired
	private UserMapper userMapper;

	@Override
	public User login(User user) {
		User login = userMapper.login(user);
		return login;
	}

	@Override
	public void insert(User user) {
	userMapper.insert(user);
	}

}
